package com.rndemo.rn.event;

import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;

/**
 * Created by tzj on 2018/5/9.
 */
public class LoadMoreEvent extends Event<LoadMoreEvent> {
    public static final String NAME = "loadMore";

    public LoadMoreEvent(int viewTag) {
        super(viewTag);
    }

    @Override
    public String getEventName() {
        return NAME;
    }

    @Override
    public void dispatch(RCTEventEmitter rctEventEmitter) {
        rctEventEmitter.receiveEvent(getViewTag(), getEventName(), null);
    }
}
